import {
  createRouter,
  createWebHistory
} from 'vue-router'
import Home from '../views/Home.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home,
    meta: {
      tranitionClass: "back"
    }
  },
  {
    path: '/about',
    name: 'About',
    component: () => import('../views/About.vue'),
    meta: {
      tranitionClass: ""
    }
  },
  {
    path: '/index1',
    name: 'Index1',
    component: () => import('../views/Index1.vue'),
    meta: {
      tranitionClass: "jump"
    }
  },
  {
    path: '/index2',
    name: 'Index2',
    component: () => import('../views/Index2.vue'),
    meta: {
      tranitionClass: "jump"
    }
  },
  {
    path: '/index3',
    name: 'Index3',
    component: () => import('../views/Index3.vue'),
    meta: {
      tranitionClass: 'jump'
    }
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
